import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;

public class DDL {
    public static void main(String[] args) {
        String sql = "create TABLE employee (\n" +
                "\tid INT PRIMARY KEY AUTO_INCREMENT,\n" +
                "\tNAME VARCHAR ( 100 ) NOT NULL,\n" +
                "\tsalary NUMERIC ( 15, 2 ) NOT NULL\n" +
                ");";
        Connection con = null;
        PreparedStatement ps = null;
        try {
            con= DBUtil.getConnection();
            ps=con.prepareStatement(sql);
            int i = ps.executeUpdate();
        } catch (SQLException throwables) {
            throwables.printStackTrace();
        }finally {
            DBUtil.close(null,ps,con);
        }
    }
}
